package uk.org.cardboardbox.neodroidpocket;

import java.util.Arrays;

public class NeoGeoPocket {
	
	static final public int screenx = 160;
	static final public int screeny = 152;
	
	static public native void jni_init(String romfilename);
	static public void jni_emulate(){
		_jni_emulate(framebuffer,soundbuffer,soundbuffer.length);
	}
	
	static public native void _jni_emulate(int[] framebuffer, short[] soundbuffer, int sblen);
	
	static public int[] framebuffer = new int[screenx * screeny];
	static public short[] soundbuffer;
	
	static public native void jni_cleanup();
	
	static {
        System.loadLibrary("neogeopocket");
	}
}
